import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 抹平浏览器差异化
import 'normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/style/common.css'
// 自定义组件
import directive from '@/directive'
// 全局注册自定义组件
import libs from '@/components/libs.js'
Vue.use(libs)
Object.keys(directive).forEach(item => {
  Vue.directive(item, directive[item])
})
import '@/premission.js' //导航首位

Vue.use(ElementUI)

Vue.config.productionTip = false
// 兄弟组件传值
Vue.prototype.$bus = new Vue()
new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
